Auto BE #2 Edition
Auto BE #2 Edition – Trade Exit and ADR Panel Utility (MT4)
Auto BE #2 Edition is a MetaTrader 4 utility that manages trade exits using automatic stop-loss placement, breakeven protection, and an optional partial-close mechanism.
It also includes an ADR (Average Daily Range) panel that displays market range and volatility data directly on the chart.
The tool helps traders maintain consistent, rules-based trade management whether trading manually or through Expert Advisors.
Main functions
Automatic stop-loss and take-profit
Automatically sets Stop Loss (SL) and Take Profit levels when a position is opened (if not already defined). SL and TP are fully adjustable via input settings.
Partial close function
Executes an automatic partial close when price reaches a specified percentage of the TP distance.
The percentage of lots to close and the TP trigger distance (%) are both configurable through input parameters.
Designed to work for any lot size ≥ 0.01.
Breakeven adjustment (optional)
Moves Stop Loss to breakeven plus offset once a defined profit threshold is reached.
Prevents profitable trades from turning negative while allowing continued upside potential.
ADR panel (optional)
Displays real-time market metrics including:
- Current spread (pips)
- Average Daily Range (ADR)
- Daily high-to-low range
- ADR coverage percentage
Panel color, position, and layout are fully customizable.
Operating logic
- Attach the utility to the chart of the symbol you wish to manage.
- When a new position opens, SL and TP are automatically applied if not already set.
- Trade management begins immediately.
- When
PartialTriggerPercentof TP is reached, the EA closes the configuredPartialClosePercentof the position. - Remaining volume continues toward TP with optional breakeven adjustment.
- The ADR panel continuously updates with live data.
Input parameters
| Parameter | What it does |
|---|---|
| SL & TP | |
StopLoss | Stop-loss distance in pips. |
TakeProfit | Take-profit distance in pips. |
| Partial close | |
PartialTriggerPercent | % of TP distance where partial close is triggered. |
PartialClosePercent | % of total lots to close when triggered. |
| Breakeven | |
EnableBreakEven | Enable or disable breakeven logic. |
BEActivationPips | Profit (in pips) required to activate breakeven. |
BEOffsetPips | Offset in pips beyond breakeven level. |
| ADR panel | |
EnableADRPanel | Show or hide the ADR panel. |
ADR_Period | Lookback period (days) for ADR calculation. |
PanelCorner / PanelX / PanelY | Control panel position on chart. |
PanelTextColor | Text color for the panel display. |
Technical notes
- Minimum supported partial close lot size: 0.02 lots
- ADR panel can be turned on or off
- No external DLLs or internet access required
- Fully compatible with manual or EA-driven orders
- All calculations occur within MT4’s native environment